package de.ralf.urwalking.soplugin;

/** This data-class represents a point in the EPSG system and supplies methods to access
 *  the coordinates of the respective point
 *  
 * @author Florian Ludwig
 * @author Andreas Rauscher
 * @version 1.0 - September 30, 2013. */
public class EPSGPoint {
	
	/** x-coordinate (easting) of the point */
	private double x;
	/** y-coordinate (northing) of the point */
	private double y;
	
	/** empty constructor of the class to create an instance of a point in the EPSG system
	 *  with x(easting) 0.0 and y(northing) 0.0 */
	public EPSGPoint() {
		this.x = 0.0;
		this.y = 0.0;
	}
	
	/** constructor of the class to create an instance of a point in the EPSG system at
	 *  a certain position
	 *  
	 *  @param x	double: x-coordinate(easting)
	 *  @param y	double: y-coordinate(northing) */
	public EPSGPoint(double x, double y) {
		this.x = x;
		this.y = y;
	}
	
	/** @return double: x-coordinate(easting) of the point */
	public double getX() {
		return x;
	}
	
	/** @return double: y-coordinate(northing) of the point */
	public double getY() {
		return y;
	}
	
	/** Sets the x-coordinate(easting) of the point
	 * @param x		x-coordinate(easting) */
	public void setX(double x) {
		this.x = x;
	}
	
	/** Sets the y-coordinate(easting) of the point
	 * @param y		y-coordinate(easting) */
	public void setY(double y) {
		this.y = y;
	}
	
}
